<template>
    <div style="text-align: right;margin-top: 20px;">
        <el-pagination background layout="prev, pager, next" :total="total" :page-size="pageSize" @current-change="changepage">
        </el-pagination>
    </div>

</template>
<script>

export default {


    props: {
        total: {
            type: Number,
            default: 0
        },
        pageSize: {
            type: Number,
            default: 10
        },
    },
    methods:{
changepage(page){
    console.log(page);
    this.$emit('changepage',page)
}
    }
};

</script>